package models

import "time"

type UserRepository struct {
	Id                 int       `json:"id" db:"id"`
	Identity           string    `json:"identity" db:"identity"`
	UserIdentity       string    `json:"user_identity" db:"user_identity"`
	ParentId           int64     `json:"parent_id" db:"parent_id"`
	RepositoryIdentity string    `json:"repository_identity" db:"repository_identity"`
	Ext                string    `json:"ext" db:"ext"`
	Name               string    `json:"name" db:"name"`
	CreatedAt          time.Time `json:"created_at" db:"created_at" xorm:"created"`
	UpdatedAt          time.Time `json:"updated_at" db:"updated_at" xorm:"updated"`
	DeletedAt          time.Time `json:"deleted_at" db:"deleted_at" xorm:"deleted"`
}

func (u UserRepository) TableName() string {
	return "user_repository"
}
